package com.itasura.annot.web;

import com.itasura.annot.entity.User;
import com.itasura.annot.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sailor wang
 * @date 2018/11/14 5:53 PM
 * @description
 */
@Slf4j
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("/login")
    public void login(Long userId) {
        User user = userService.login(userId);
        log.info("user info -> {}",user);
    }
}